package com.foreveross.crawl.vo;

import java.io.Serializable;

/** 
 * @ClassName: 渠道信息对象 
 * @Description: TODO
 * @author luofangyi
 * @date 2014-7-21 上午11:44:33 
 *  
 */ 
public class ChannelInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3372911501480643595L;
	
	private Long channelId;
	private String channelName;
	private String channelFullName;
	private String dbTable;
	private String dbType;
	private String dbTypeName;
	private String isUseProxy;
	private Long groupId;
	private String groupName;
	
	public ChannelInfo(){
		
	}
	
	public ChannelInfo(Long channelId, String channelName,
			String channelFullName, String dbTable, String dbType,
			String dbTypeName, String isUseProxy, Long groupId, String groupName) {
		super();
		this.channelId = channelId;
		this.channelName = channelName;
		this.channelFullName = channelFullName;
		this.dbTable = dbTable;
		this.dbType = dbType;
		this.dbTypeName = dbTypeName;
		this.isUseProxy = isUseProxy;
		this.groupId = groupId;
		this.groupName = groupName;
	}
	public Long getChannelId() {
		return channelId;
	}
	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public String getChannelFullName() {
		return channelFullName;
	}
	public void setChannelFullName(String channelFullName) {
		this.channelFullName = channelFullName;
	}
	public String getDbTable() {
		return dbTable;
	}
	public void setDbTable(String dbTable) {
		this.dbTable = dbTable;
	}
	public String getDbType() {
		return dbType;
	}
	public void setDbType(String dbType) {
		this.dbType = dbType;
	}
	public String getDbTypeName() {
		return dbTypeName;
	}
	public void setDbTypeName(String dbTypeName) {
		this.dbTypeName = dbTypeName;
	}
	public String getIsUseProxy() {
		return isUseProxy;
	}
	public void setIsUseProxy(String isUseProxy) {
		this.isUseProxy = isUseProxy;
	}
	public Long getGroupId() {
		return groupId;
	}
	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	@Override
	public String toString() {
		return "ChannelInfo [channelId=" + channelId + ", channelName="
				+ channelName + ", channelFullName=" + channelFullName
				+ ", dbTable=" + dbTable + ", dbType=" + dbType
				+ ", dbTypeName=" + dbTypeName + ", isUseProxy=" + isUseProxy
				+ ", groupId=" + groupId + ", groupName=" + groupName + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((channelFullName == null) ? 0 : channelFullName.hashCode());
		result = prime * result
				+ ((channelId == null) ? 0 : channelId.hashCode());
		result = prime * result
				+ ((channelName == null) ? 0 : channelName.hashCode());
		result = prime * result + ((dbTable == null) ? 0 : dbTable.hashCode());
		result = prime * result + ((dbType == null) ? 0 : dbType.hashCode());
		result = prime * result
				+ ((dbTypeName == null) ? 0 : dbTypeName.hashCode());
		result = prime * result + ((groupId == null) ? 0 : groupId.hashCode());
		result = prime * result
				+ ((groupName == null) ? 0 : groupName.hashCode());
		result = prime * result
				+ ((isUseProxy == null) ? 0 : isUseProxy.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChannelInfo other = (ChannelInfo) obj;
		if (channelFullName == null) {
			if (other.channelFullName != null)
				return false;
		} else if (!channelFullName.equals(other.channelFullName))
			return false;
		if (channelId == null) {
			if (other.channelId != null)
				return false;
		} else if (!channelId.equals(other.channelId))
			return false;
		if (channelName == null) {
			if (other.channelName != null)
				return false;
		} else if (!channelName.equals(other.channelName))
			return false;
		if (dbTable == null) {
			if (other.dbTable != null)
				return false;
		} else if (!dbTable.equals(other.dbTable))
			return false;
		if (dbType == null) {
			if (other.dbType != null)
				return false;
		} else if (!dbType.equals(other.dbType))
			return false;
		if (dbTypeName == null) {
			if (other.dbTypeName != null)
				return false;
		} else if (!dbTypeName.equals(other.dbTypeName))
			return false;
		if (groupId == null) {
			if (other.groupId != null)
				return false;
		} else if (!groupId.equals(other.groupId))
			return false;
		if (groupName == null) {
			if (other.groupName != null)
				return false;
		} else if (!groupName.equals(other.groupName))
			return false;
		if (isUseProxy == null) {
			if (other.isUseProxy != null)
				return false;
		} else if (!isUseProxy.equals(other.isUseProxy))
			return false;
		return true;
	}
}
